<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\OrderGoods
 *
 * @property int $rec_id
 * @property int $order_id
 * @property int $goods_id
 * @property int $act_id 超值礼包的ID
 * @property string $goods_name
 * @property string $goods_sn
 * @property int $product_id
 * @property int $goods_number
 * @property string $market_price
 * @property string $goods_price
 * @property string $discount_fee 对接erp专用，商品优惠金额
 * @property string $goods_attr
 * @property int $send_number
 * @property int $is_real
 * @property string $extension_code
 * @property int $parent_id
 * @property int $is_gift
 * @property string $goods_attr_id
 * @property string|null $package_attr_id
 * @method static \Illuminate\Database\Eloquent\Builder|OrderGoods newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|OrderGoods newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|OrderGoods query()
 * @method static \Illuminate\Database\Eloquent\Builder|OrderGoods whereActId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderGoods whereDiscountFee($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderGoods whereExtensionCode($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderGoods whereGoodsAttr($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderGoods whereGoodsAttrId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderGoods whereGoodsId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderGoods whereGoodsName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderGoods whereGoodsNumber($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderGoods whereGoodsPrice($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderGoods whereGoodsSn($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderGoods whereIsGift($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderGoods whereIsReal($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderGoods whereMarketPrice($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderGoods whereOrderId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderGoods wherePackageAttrId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderGoods whereParentId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderGoods whereProductId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderGoods whereRecId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderGoods whereSendNumber($value)
 * @mixin \Eloquent
 */
class OrderGoods extends Model
{
    protected $table = 'order_goods';
    protected $primaryKey = '';
    protected $fillable = [
        'rec_id', 'order_id', 'goods_id', 'act_id', 'goods_name', 'goods_sn', 'product_id',
        'goods_number', 'market_price', 'goods_price', 'discount_fee', 'goods_attr', 'send_number',
        'is_real', 'extension_code', 'parent_id', 'is_gift', 'goods_attr_id', 'package_attr_id'
    ];
}
